#!/usr/bin/python
# -*- coding: UTF-8 -*-
import os,sys
import configparser as cparser
# base_dir = str(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
base_dir = str(os.path.dirname(os.path.dirname(__file__)))
# print ('base_dir:'+base_dir)
base_dir = base_dir.replace('\\', '/')
# print ('base_dir:'+base_dir)
file_path = base_dir + "/sss.ini"
# print (file_path)
# print ('file_path'+ file_path)
cf = cparser.ConfigParser()
cf.read(file_path)

def getcookies(cookie_type):
    if cookie_type == 1:
        # cookie2 = cf.get("cookieconf", "pc_cookie")
        # print(cf.get("cookieconf", "pc_cookie"))
        # cf.set("cookieconf", "pc_cookie", "255.255.255.0")
        cf.add_section("dd")
    else:
        cookie2 = cf.get("Match", "mobile_cookie")
    cookies = {}
    cookies = cookie2
    return cookies


if __name__ == '__main__':
  ft=getcookies(1)
  print (ft)


